#pragma once

class CBeamRebarHelper
{
public:
	CBeamRebarHelper(void);
public:
	~CBeamRebarHelper(void);
public:
     BOOL SelectBeamUpRebarText(void);
	 BOOL SelectBeamDownRebarText(void);
	 BOOL SelectBeamHoopRebarText(void);
	 BOOL ModifyBeamWidth(void);
	 BOOL ModifyBeamUpRebarText(void);
	 BOOL ModifyBeamDownRebarText(void);
	 BOOL WriteBeamUpRebarText(void);
	 BOOL WriteBeamDownRebarText(void);
	 BOOL InquiRebarAmount(void);
	 BOOL MergeRebarText(void);
     BOOL RedBigRebarText(void);
	 BOOL CreateLayer(CString layerName);
	 float CalcuRebarAmountFromText(CString rebarText);
	 float CalcuRebarAmountFromTextTwo(CString rebarText);
public:
     static  int  nBeamWidth;
	 static  int  nProLayerThick;
	 static  float  nRebarBigFactor;
	 static  float  nDistTextAllow;
public:
	int CheckTextLayer(AcDbEntity* pEnt);
	CString CalcuRebar(int nRebarTotal,int nRebarDia,int type);
	CString CalcuRebarText(int nRebarTotal,int nRebarDia,int type);
	CString CalcuRebarTextA(int nRebarNum,int nRebarDia,int type);
	float CalcuMaxNumFromText(AcDbText* pText1,AcDbText* pText2);
	CString CalcuMaxNumStrFromText(AcDbText* pText1,AcDbText* pText2);
	int IsBigText(AcDbText* pText1,AcDbText* pText2);
};
